package Controllers;

import Connection.FileWorldCreator;
import SwingComponents.CreateWorldPanel;

public class CreateWorldController {
   
    private PrincipalController principalController;
 
    public CreateWorldController(PrincipalController principalController) {
        this.principalController = principalController;
        initCreateWorldPanel();
    }

    private void initCreateWorldPanel() {
        CreateWorldPanel createWorldPanel = new CreateWorldPanel(this, new FileWorldCreator(principalController.getApplication()).createEmptyWorld());
        createWorldPanel.setVisible(true);
        principalController.getApplication().add(createWorldPanel);
    }
    
}
